class Article < ActiveRecord::Base
	belongs_to :person
	belongs_to :category
	belongs_to :categoryt
	belongs_to :tag
	has_many :article_comments, :order => 'created_at desc'
	has_one :most_recent_comment, :class_name => 'ArticleComment', :order => 'created_at desc'
	  def before_create
 #   self.category_id = 3
 #   self.published = 1
  end  
end
